import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import 'element-plus/dist/index.css'
import App from '@/App.vue'
import router from '@/router'
import { store, zwScrm } from '@/store'
// import directives from '@/utils/directives'

// 使用自定义指令
// Object.keys(directives).forEach((item: any) => {
//   app.directive(item, directives[item])
// })

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.config.warnHandler = () => null
app.use(store, zwScrm).use(ElementPlus, { sizi: 'small' }).use(router).mount('#app')
